#include <iostream>

#include "CProperty.h"

using namespace std;

int main(int argc, char *argv[])
{
	if(argc<2) {
		cerr << "Usage : " << argv[0] << " <config>" << endl;
		exit(-1);
	}

	char *conf = argv[1];
	CProperty config(conf);

	pair<string,string> kv;
	kv.first = "directory";
	cout << "get(\"directory\") = " << config.get(kv).second<< endl;

	cout << endl;
	cout << "------- print all -------" << endl;
	config.print();

	cout << endl;
	kv.first = "nothing";
	cout << "get(\"nothing\") = " << config.get(kv).second << endl;
}
